home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / internal / m68k / semaphoreglue.s < prev    next >
Encoding:
Text File  |  1996-07-16  |  651 b   |  27 lines

  1.     | The following functions are guaranteed to preserve
  2.     | all registers. But I don't want to write them completely
  3.     | in assembly - C is generally more readable.
  4.     | So I use those stubs to preserve the registers.
  5.  
  6.     .globl    _Exec__ObtainSemaphore
  7. _Exec__ObtainSemaphore:
  8.     moveml    d0/d1/a0/a1,sp@-
  9.     jbsr    _Exec_ObtainSemaphore
  10.     moveml    sp@+,d0/d1/a0/a1
  11.     rts
  12.  
  13.     .globl    _Exec__ReleaseSemaphore
  14. _Exec__ReleaseSemaphore:
  15.     moveml    d0/d1/a0/a1,sp@-
  16.     jbsr    _Exec_ReleaseSemaphore
  17.     moveml    sp@+,d0/d1/a0/a1
  18.     rts
  19.  
  20.     .globl    _Exec__ObtainSemaphoreShared
  21. _Exec__ObtainSemaphoreShared:
  22.     moveml    d0/d1/a0/a1,sp@-
  23.     jbsr    _Exec_ObtainSemaphoreShared
  24.     moveml    sp@+,d0/d1/a0/a1
  25.     rts
  26.  
  27.